from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1233480891.4530001
_template_filename='D:\\pylons\\learnpylons\\SimpleSite\\simplesite\\templates/derived/page/new.html'
_template_uri='/derived/page/new.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    pass
def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, '/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        h = context.get('h', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n\n\n')
        # SOURCE LINE 6
        __M_writer(u'\n\n\n   \n')
        # SOURCE LINE 10
        __M_writer(escape(h.form(h.url_for(controller='page', action='click'))))
        __M_writer(u'\n   \n<fieldset>\n\n<legend>Study</legend>\n\n<label for="heading">Heading:</label><br/>\n')
        # SOURCE LINE 17
        __M_writer(escape(h.text(name="heading", id="heading")))
        __M_writer(u'<br /><br/>\n\n<label for="title">Title:</label><br/>\n')
        # SOURCE LINE 20
        __M_writer(escape(h.text(name="title", id="title")))
        __M_writer(u'<br/><br/>\n\n<label for="content">content:</label><br/>\n')
        # SOURCE LINE 23
        __M_writer(escape(h.textarea(name="content", id="content")))
        __M_writer(u'<br/><br/>\n\n\n')
        # SOURCE LINE 26
        __M_writer(escape(h.submit(name="action", value="Create Page")))
        __M_writer(u'\n<br/><br/>\n</fieldset>\n\n')
        # SOURCE LINE 30
        __M_writer(escape(h.end_form()))
        __M_writer(u'\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 4
        __M_writer(u'\n    <h1 class="main">Create a New Page</h1>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


